package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.UPlanCoupon;
import com.ecoolex.discount.sales.entity.UPlanCouponExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UPlanCouponMapper {
    long countByExample(UPlanCouponExample example);

    int deleteByExample(UPlanCouponExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UPlanCoupon record);

    int insertSelective(@Param("record") UPlanCoupon record, @Param("selective") UPlanCoupon.Column ... selective);

    UPlanCoupon selectOneByExample(UPlanCouponExample example);

    List<UPlanCoupon> selectByExample(UPlanCouponExample example);

    UPlanCoupon selectByPrimaryKey(Long id);

    UPlanCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UPlanCoupon record, @Param("example") UPlanCouponExample example, @Param("selective") UPlanCoupon.Column ... selective);

    int updateByExample(@Param("record") UPlanCoupon record, @Param("example") UPlanCouponExample example);

    int updateByPrimaryKeySelective(@Param("record") UPlanCoupon record, @Param("selective") UPlanCoupon.Column ... selective);

    int updateByPrimaryKey(UPlanCoupon record);

    int batchInsert(@Param("list") List<UPlanCoupon> list);

    int batchInsertSelective(@Param("list") List<UPlanCoupon> list, @Param("selective") UPlanCoupon.Column ... selective);

    int logicalDeleteByExample(@Param("example") UPlanCouponExample example);

    int logicalDeleteByPrimaryKey(Long id);
}